package net.gianrishandy.jbase.component.event;

import java.util.EventObject;

/**
 * @author Gian Rishandy
 *
 */
public class DataGridEvent extends EventObject {
	private static final long serialVersionUID = -1996442507255225854L;
	private String columnName;
	private int columnIndex;
	private int rowIndex;
	
	public DataGridEvent(Object source) {
		super(source);
	}

	/**
	 * Get column name
	 * 
	 * @return String
	 */
	public String getColumnName() {
		return columnName;
	}

	/**
	 * Set column name
	 * 
	 * @param columnName
	 */
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	/**
	 * Get column index
	 * 
	 * @return Integer
	 */
	public int getColumnIndex() {
		return columnIndex;
	}

	/**
	 * Set column index
	 * 
	 * @param columnIndex
	 */
	public void setColumnIndex(int columnIndex) {
		this.columnIndex = columnIndex;
	}

	/**
	 * Get row index
	 * 
	 * @return Integer
	 */
	public int getRowIndex() {
		return rowIndex;
	}

	/**
	 * Set row index
	 * 
	 * @param rowIndex
	 */
	public void setRowIndex(int rowIndex) {
		this.rowIndex = rowIndex;
	}
	
}
